<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="wf" uri="/augurit-wf"%>
 <%@page import="com.augurit.common.system.web.auth.form.LoginUserForm"%>
 <%LoginUserForm form=(LoginUserForm)request.getSession().getAttribute("SES_LOGIN_USER"); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- dwr libs -->
<script src="${ctx}/resources/js/ext/adapter/ext/ext-base.js" type="text/javascript"></script>
<script src="${ctx}/resources/js/ext/ext-all.js" type="text/javascript"></script>
 <script src="${ctx}/resources/js/jquery/jquery.js" type="text/javascript"></script>
<script src="${ctx}/gzcgwsp/resources/js/YwUtil.js" type="text/javascript"></script>
<link href="${ctx}/gzcgwsp/resources/css/common-ui.css" rel="stylesheet" type="text/css" />
<script src="${ctx}/resources/components/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<!-- 打印 -->
<script language="JavaScript" src="${ctx}/resources/components/ntko/OfficeContorlFunctions.js"></script>
<script language="JavaScript" src="${ctx}/wf/client/common/js/wf-attachment-public.js"></script>

<script src="${ctx}/gzcgwsp/resources/js/YwEnterprise.js" type="text/javascript"></script>

	<script type="text/javascript">   	
    	function aa(){
    		var templateCode = '${templateCode}';
    		var id = document.getElementById("id").value;
    		var url = "";
    		if(templateCode == "rqjyxkz_pzqy"){
    			url = '${ctx}/yw-rq-qyjyxkpz!doBjsl.action';
    		}else{
    			url = '${ctx}/yw-rq-qyjyxkgd!doBjsl.action';
    		}
    		Ext.Ajax.request({
				url: url,
				dataType: 'xml',//数据类型设置
				params:{
					'id':id
				},
				success:function(response){
					var result = Ext.decode(response.responseText);
					if(result.success){
						var bjgzflag = result.form.bjgzflag;
						if(bjgzflag == '补交已受理'){
							$("#bjysl").attr("style","display:line");   
							$("#bjsl").attr("style","display:none");  
						}
					}else{
						Ext.Msg.alert('提示','补交受理失败！');
					}
				},
				failure:function(){
					Ext.Msg.alert('提示','补交受理失败！');
				},
				scope: this
		});
    	}
    	
    	 	 	    	//选择收件材料
    	function selectsjcl(bjgzqdselect){
    		var  templateCode=parent.WF_CONFIG.templateCode;
    	    var ywId=document.forms[0].id.value;
    		var qdobj=document.getElementById(bjgzqdselect);
    		var url="${ctx}/yw-com-sjcllist!getSjclList.action?templateCode="+templateCode;
    	    var val= window.showModalDialog(url,qdobj,"dialogWidth=800px;dialogHeight=600px");
    	 
    	}
    </script>
 <body>
 <form action="" id="csbzgzForm" name="csbzgzForm"></form>
  <table width="800" border="0" cellspacing="2" cellpadding="2" align="center">
      <tr>
        <td><table width="100%" border="0" cellspacing="2" cellpadding="2" >
          <tr><td height="55" bordercolor="#000000" align="center" style="font-size:22px;">
            <br/><b>补交告知</b> <br/> <br/>
          </td></tr>
          <tr><td bordercolor="#000000" align="right" style="font-size:22px;">
            <div id="bjsl" style="display:none"><input type="button" value="补交受理" onclick="aa();"/></div>
            <div id="bjysl" style="display:none"><font color='green' font-size="8px">补交已受理</font></div>
          </td></tr>
        </table></td>
      </tr>
      <tr>
        <td>
        </td>
       </tr>
            <tr>
              <td><table width="100%" border="1" cellspacing="0" cellpadding="2" class="tpl_list_ui">
                <tr>
                  <td width="10%" height="0"></td>
                  <td width="10%"></td>
                  <td width="10%"></td>
                  <td width="10%"></td>
                  <td width="10%"></td>
                  <td width="10%"></td>
                  <td width="10%"></td>
                  <td width="10%"></td>
                  <td width="10%"></td>
                  <td width="10%"></td>
                </tr>
                <tr>
                  <td bordercolor="#000000" colspan="2" height="25" align="center">补交告知时间</td>
                  <td colspan="3" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                   <input isHide="true" id="bjgzsj" name="bjgzsj" style="width:100%" value="<s:date name='bjgzsj' format="yyyy年MM月dd日"/>" onclick="WdatePicker({skin:'ext', dateFmt:'yyyy年MM月dd日'});" type="text" class="textdocWdate" readonly />
                  </td>
                  <td bordercolor="#000000" colspan="2" height="25" align="center"><font color="red">*</font>补交告知发出人</td>
                  <td colspan="3" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                  	<input isHide="true" class="text" name="bjgzfcr" id="bjgzfcr" value="${bjgzfcr}" type="text" style="width:100%"/>
                  </td>
                </tr>
                <tr>
                  <td bordercolor="#000000" colspan="2" height="25" align="center"><font color="red">*</font>补交告知原因</td>
                  <td colspan="8" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                    <textarea isHide="true" class="text" rows="8" name="bjgzyy" id="bjgzyy" style="width:100%">${bjgzyy}</textarea>
                  </td>
                </tr>
                <tr>
                  <td bordercolor="#000000" colspan="2" height="25" align="center"><font color="red">*</font>补交材料告知清单
                   </br>
                   <input type="button" name="bjgzqdselect" id="bjgzqdselect" onclick="selectsjcl('bjgzqd');" value="选择" />
    
                  </td>
                  <td colspan="8" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                    <textarea isHide="true" class="text" rows="8" id="bjgzqd" name="bjgzqd" style="width:100%">${bjgzqd}</textarea>
                  </td>
                </tr>
              </table></td>
            </tr>
            
         <tr>
        <td>&nbsp;</td>
      </tr>
    </table>
    
    <table width="800"  align="center" border="0" cellspacing="2" cellpadding="2">
      <tr>
        <td><table width="100%" border="0" cellspacing="2" cellpadding="2" >
          <tr><td height="55" bordercolor="#000000" align="center" style="font-size:22px;">
            <br/><b>补交受理</b> <br/> <br/>
          </td></tr>
          <tr><td bordercolor="#000000" align="right" style="font-size:22px;">
            <div id="bjsl" style="display:none"><input type="button" value="补交受理" onclick="aa();"/></div>
            <div id="bjysl" style="display:none"><font color='green' font-size="8px">补交已受理</font></div>
          </td></tr>
        </table></td>
      </tr>
      <tr>
        <td>
        </td>
       </tr>
            <tr>
              <td><table width="100%" border="1" cellspacing="0" align="center" cellpadding="2" class="tpl_list_ui">
                <tr>
                  <td width="10%" height="0"></td>
                  <td width="10%"></td>
                  <td width="10%"></td>
                  <td width="10%"></td>
                  <td width="10%"></td>
                  <td width="10%"></td>
                  <td width="10%"></td>
                  <td width="10%"></td>
                  <td width="10%"></td>
                  <td width="10%"></td>
                </tr>
                <tr>
                  <td bordercolor="#000000" colspan="2" height="25" align="center">补交受理时间</td>
                  <td colspan="3" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                   <input isHide="true" id="bjslsj" name="bjslsj" style="width:100%" value="<s:date name='bjslsj' format="yyyy年MM月dd日"/>" onclick="WdatePicker({skin:'ext', dateFmt:'yyyy年MM月dd日'});" type="text" class="textdocWdate" readonly />
                  </td>
                  <td bordercolor="#000000" colspan="2" height="25" align="center"><font color="red">*</font>补交受理人</td>
                  <td colspan="3" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                   <input isHide="true" class="text" name="sldwcbrxm" id="sldwcbrxm" value="${sldwcbrxm}" type="text" style="width:100%"/>
                  </td>
                </tr>
                <tr>
                  <td bordercolor="#000000" colspan="2" height="25" align="center"><font color="red">*</font>补交受理单位地点</td>
                  <td colspan="8" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                    <input isHide="true" class="text" name="bjsljtdd" id="bjsljtdd" value="${bjsljtdd}" type="text" style="width:100%"/>
                  </td>
                </tr>
                <tr>
                  <td bordercolor="#000000" colspan="2" height="25" align="center"><font color="red">*</font>补交材料清单
                   </br>
                   <input type="button" name="bjgzqdselect" id="bjgzqdselect" onclick="selectsjcl('bjclqd');" value="选择" />
    
                  </td>
                  <td colspan="8" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                    <textarea isHide="true" class="text" rows="8" id="bjclqd" name="bjclqd" style="width:100%">${bjclqd}</textarea>
                  </td>
                </tr>
              </table></td>
            </tr>
            
            <tr>
              <td>&nbsp;</td>
            </tr>
         <tr>
        <td>&nbsp;</td>
      </tr>
    </table>
    </body>
    </head>
    </html>
    
    